import request from '@/utils/request'

const docsRecordApi = {
    /**
     * 记录列表
     */
    lists(params: {
        page_no?: number;
        page_size?: number;
        user?: string;
        file_id?: number;
        filename?: string;
        start_time?: string;
        end_time?: string;
    }): Promise<any> {
        return request.get({
            url: '/apply/docs/record/lists',
            params
        })
    },

    /**
     * 记录删除
     */
    delete(id: number): Promise<any> {
        return request.post({
            url: '/apply/docs/record/delete',
            params: {
                id
            }
        })
    }
}

export default docsRecordApi
